/*
 * @Author: WangZhiJie
 * @Date: 2024-03-27 11:20:22
 * @LastEditTime: 2024-03-27 15:06:10
 * @Description: 
 * @FilePath: \ga-smart-city-app-front\src\pages\personnel\service.ts
 */
import axios from "axios";
import http from "@/utils/Axios";

export async function getPersonnelList(params:{size:number,current:number,keyword?:string}) {
  return http<any>(
    "get",
    "/app/keeper-special/governApp/index/personInfos",
    params
  );
}
export async function upLoadImage(prams: {file: File}) {
  const formData = new FormData();
  formData.append("file", prams.file);
  return await axios.post("/api/seh-resource/attach/uploads", formData, {
    headers: {
      "Content-type": "multipart/form-data",
    },
  });
}
